#! /usr/bin/env python

import xml.etree.ElementTree as x
import sys
	
tree = x.parse(open(sys.argv[1]))
for element in tree.iter():
	if element.tag == 'habitacion':
		print element.attrib['id']